package com.careerraiser.xtra;

import java.sql.SQLException;


public class DoberMan extends Dog {

	public static void main(String[] args) {
		test();
	}
	public DoberMan (String name,int weight){
		this.setName(name);
		this.setWeight(weight);
		Constants.testMethoClassTyped("testmessage");
	}
	
	private static void test(){
		
	}

	/* (non-Javadoc)
	 * @see com.careerraiser.Animal#makeSound()
	 */
	@Override
	public void makeSound() {
		System.out.println("Doberman bow wow");
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getName()+":"+this.getWeight();
	}
	
	public String getMySpeed(){
		return "40 kmph";
	}
	
	public void  moveTail() {
		System.out.println("Doberman moving tail");
	}
	
	public void exceptionTest() throws NullPointerException{
		
	}

}
